feat(infra): IaC foundation — Terraform modules + Helm chart skeleton (Step 0.9) - #34
Merged
Merged
Conversation
… (Step 0.9) Terraform (Kubernetes-native, helm + kubernetes providers): - modules/postgres — Bitnami postgresql chart, pgvector image override, K8s Secret - modules/redis — Bitnami redis chart, standalone/replication modes - modules/qdrant — Official qdrant chart, configurable replicas + storage - modules/elasticsearch — Bitnami elasticsearch chart, security toggle dev/prod - Root module wires all four backends with per-backend enable flags - environments/dev — local cluster (docker-desktop/kind), minimal resources, local state - environments/prod — production sizing (3× Qdrant replicas, 100–200 Gi), S3 backend stub Helm chart (infra/helm/rag-platform/): - Deployment with ConfigMap-mounted rag.yaml, Secret env var injection, read-only rootfs - Service, HPA (CPU+memory), PodDisruptionBudget, Ingress, ServiceAccount - values.dev.yaml override for single-replica, minimal-resource local deploys - NOTES.txt with post-install port-forward instructions CI gate (ci.yml): - New infra path filter (infra/terraform/**, infra/helm/**) - New iac job: terraform init -backend=false + validate for dev + prod; helm lint + template dry-run - iac job added to ci-pass required gate Task targets: task infra:init / infra:validate / infra:plan / helm:lint / helm:template Docs: docs/architecture/iac.md, docs/adr/ADR-0003-iac-kubernetes-native.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…t semver ranges Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ment conflict 'version' is reserved for registry modules in a module block. Using it with a local-path source caused Terraform to reject the source as an invalid registry address. Renamed to app_version across all four backend modules, root variables.tf, root main.tf, and both environment main.tf files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
officialCodeWork
force-pushed
the
build/phase-0/step-0.9-iac-foundation
branch
from
May 23, 2026 19:10
0a984ae to
f36cc9f
Compare
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
helm+kubernetesproviders) for all four core backends: Postgres/pgvector, Redis, Qdrant, Elasticsearch — each a self-contained module underinfra/terraform/modules/with consistentvariables.tf/main.tf/outputs.tfinfra/terraform/environments/dev/(local cluster, minimal resources, local state) andinfra/terraform/environments/prod/(HA sizing, S3 backend stub, production credentials via variables)infra/helm/rag-platform/) for the gateway service: Deployment (ConfigMap-mountedrag.yaml, Secret-injected DB creds, read-only rootfs), Service, HPA, PodDisruptionBudget, Ingress, ServiceAccount;values.dev.yamlfor single-replica local deploysiacjob inci.ymlrunsterraform validate -backend=false+helm lint/templatedry-run on everyinfra/change; wired into theci-passrequired checktask infra:init,task infra:validate,task infra:plan,task helm:lint,task helm:templateDocumentation
docs/architecture/iac.md— IaC overview, module design, Helm chart internals, env differences, extension pointsdocs/adr/ADR-0003-iac-kubernetes-native.md— Decision: Kubernetes-native Terraform over cloud-provider-specific RDS/ElastiCache modulesTest plan
task infra:validatepasses (requiresterraformCLI)task helm:lintpasses (requireshelmCLI)task helm:templaterenders without errorsiacjob passes on PR🤖 Generated with Claude Code